using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace GURUCORE.Portal.AspNet.Control
{
    [DefaultProperty("Text")]
    [ToolboxData("<{0}:PageletParam runat=server />")]
    [System.Drawing.ToolboxBitmap("resGURUCORE.ico")]
    [Description("This class is lightweght control, to put on the ASCX ASPX pagelet, to provide a parameterize value for the Pagelet business process ")]
    public class PageletParam : System.Web.UI.Control, ITextControl
    {
        [Bindable(true)]
        [Category("GURUCORE Config")]
        [DefaultValue("")]
        [Localizable(true)]
        public string Text
        {
            get
            {
                String s = (String)ViewState["Text"];
                return ((s == null) ? String.Empty : s);
            }
            set
            {
                ViewState["Text"] = value;
            }
        }

        
        //protected override void RenderContents(HtmlTextWriter output)
        //{
        //    output.Write(Text);
        //}
    }
}
